subscribe

suspend fun subscribe(subscription: String, delay: Long = 2000)

Creates a subscription to a record or collection allowing listen to received events from the desired target.

Parameters

subscription

The record or collection to subscribe to (*) for wildcard

delay

The delay waited before sending the request if the client is not yet connected


suspend fun subscribe(delay: Long = 2000, vararg subscriptionList: String)

Creates a subscription to a record or collection allowing listen to received events from the desired target.

Parameters

delay

The delay waited before sending the request if the client is not yet connected

subscriptionList

The records or collections to subscribe to (*) for wildcard